package com.example.interview.no0103.solution;

import com.example.interview.no0103.Solution;

/**
 * @Description 解答-URL化
 * @ClassName ArraySolution
 * @Author Administrator
 * @Date 2020/7/7 19:36
 * @Version 1.0.0
 */
public class StringAPISolution implements Solution {

    @Override
    public String replaceSpaces(String s, int length) {

        return s.substring(0, length).replace(" ", "%20");
    }
}
